package cn.demoncat.util.mysql.entity;

/**
 * 打开的表
 *
 * SHOW OPEN TABLES [FROM db_name] [LIKE ‘pattern’];
 *
 * @author 延晓磊
 * @since 2021年10月08日
 */
public class OpenTable {

    private String database;
    private String table;
    // 当前使用数，0表示打开但未使用
    private Integer inUse;

    public OpenTable() {
        super();
    }

    public OpenTable(String database, String table, Integer inUse) {
        this.database = database;
        this.table = table;
        this.inUse = inUse;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getTable() {
        return table;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public Integer getInUse() {
        return inUse;
    }

    public void setInUse(Integer inUse) {
        this.inUse = inUse;
    }
}
